package com.gupao.decorator.battercakedemo;


/**
 * 加一鸡蛋的装饰器类
 */
public class EggBatterCakeDecorator extends BatterCakeDecorator
{
    public EggBatterCakeDecorator(BatterCake batterCake) {
        super(batterCake);
    }

    @Override
    public String getMsg() {
        return super.getMsg()+"+1鸡蛋";
    }

    @Override
    public int getPrice() {
        return super.getPrice()+3;
    }
}
